package com.xxadmin.usercenter.dao;

import com.xxadmin.usercenter.domain.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

@Mapper
@Service
public interface UserInfoDao {

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserInfo record);

    /**
     * 根据用户名获取
     *
     * @param userName
     * @return
     */
    UserInfo selectByUserName(@Param("userName") String userName);
}